A\index{A} B \page
A\startregister [index] {A} B\startregister [index] [B] {B}
\dorecurse {10} {\input tufte}
A\stopregister [index] {A} B\stopregister [index] [B]
\page
\placeregister[index]
\stoptext
And I'm not even sure if this is allowed to say anymore, but: works in
mkii
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote:
And here I am again! Both in mkiv and in mkxl, start/stopregister does
not work when there is already an index entry before. Example below!
All best
Thomas
\setuppapersize [A6]
\starttext
A\index{A} B \page
A\startregister [index] {A} B
On 4/25/24 6:27 PM, Thomas A. Schmitz wrote:
Ah, simple typo! After fixing abel to label, startregister gives the
expected results again! Thanks Hans! I may be back with more register
questions soon...
And here I am again! Both in mkiv and in mkxl, start/stopregister does
not work when
it.
Ah, simple typo! After fixing abel to label, startregister gives the
expected results again! Thanks Hans! I may be back with more register
questions soon...
Thomas
___
If your question is of interest to others
On 4/25/2024 4:51 PM, Taco Hoekwater wrote:
On 25 Apr 2024, at 16:45, Thomas A. Schmitz wrote:
On 4/25/24 16:13, Henning Hraban Ramm wrote:
I’m using it like
\startregister[index][bibliografie]{Bibliografie}
…
\stopregister[index][bibliografie]
i.e. very similar to your example, and can
> On 25 Apr 2024, at 16:45, Thomas A. Schmitz
> wrote:
>
> On 4/25/24 16:13, Henning Hraban Ramm wrote:
>> I’m using it like
>> \startregister[index][bibliografie]{Bibliografie}
>> …
>> \stopregister[index][bibliografie]
>> i.e. very similar to your
On 4/25/24 16:13, Henning Hraban Ramm wrote:
I’m using it like
\startregister[index][bibliografie]{Bibliografie}
…
\stopregister[index][bibliografie]
i.e. very similar to your example, and can confirm it doesn’t result in
a page range in the index. Also gives no error.
Since I've become
Am 25.04.24 um 15:44 schrieb Thomas A. Schmitz:
Hi all,
has \startregister been superseded in luametatex or is it not yet
implemented? I tried to read strc-reg.lmt but couldn't figure out what
is going on. The following silly minimal test produces the expected
result with mkiv
Hi all,
has \startregister been superseded in luametatex or is it not yet
implemented? I tried to read strc-reg.lmt but couldn't figure out what
is going on. The following silly minimal test produces the expected
result with mkiv but not in mkxl.
All best
Thomas
\setuppapersize [A6
ions Richard and Mikael.
For the benefit of the list I went with the following quick'n'dirty™ approach
which will be good enough:
\def\index{\dosingleempty\debugIndex}
\def\debugIndex[#1]#2{%
\iffirstargument
\null% Ignore it for now
\else
\inmargin[color=blue,stack=yes,style=ssxx]{#2}%
\fi
}
ry?
\startchapter[title={My chapter title}]
\startregister[index][anIdentifier]{word}
The text...
\stopregister[index][anIdentifier]
\stopchapter
—
Bruce Horrocks
Hampshire, UK
___
If your question is of interest to other
, if Chapter 3 spans page 22-50,
and I place `\index{word}` in Chapter 3, I need the index to display
"word 22-50", but only for that entry...not for all index entries.
How to add entire chapter's page ranger for index entry?
You need to use
\startregister[index][some code]{Entry}
.
jector[index] % ERROR!
\index{Danold}
\index{Drum}
%\index{Dapper} % uncomment to test
\index{Kankra}
\index{Kookaburra}
\placeregister[index][criterium=all]
\page
\startregister[index][test]{Knuth}
\input tufte
\index{Donald}\index{Drom}\index{Divine}
\page\index{Dummy}
\input knuth
\index{Don
it possible to combine entries from \index and \startregister[index]?
If I use \start/stopregister and have the same index entry within the range or
on the same page, I get duplicate pages or page ranges, like 10-12 from
\startregister and additionally 11, 12-13 from \index entries, makes at the
if I have a
\startregister - \stopregister pair resulting in an index entry like
entry 354--356
I would like to be able to make this read
entry 354--6
There are different conventions for number span elision but usually
teens aren't elided so
entry 314--316
would become
I need is: sausage 1-2i
Is this possible?
MWE
\defineprocessor[important][right={\it{i}}]
\starttext
\samplefile{knuth}
\startregister[index][sausage][important->sausage]{sausage}
\dorecurse{6}{\samplefile{knuth}}
\stopregister[index][sausage]{sausage}
\samplefile{knuth}
\page
\placein
these "passim" entries are in scientific works; maybe I
could use
Mainperson firstpage–lastpage
instead to avoid the major hassle of tricking the index mechanisms.
in that case \startindex...\stopindex or \startregister...\stopregiste
–216, 219–220, 224, 240, 242–244, 291
Page 6 is mentioned two times out of order. The problem doesn’t show at other
locations.
The first index entry (p.6) is made by
\startregister[locations][test]{Someplace}, second is Hamburg (single entry).
If I replace Hamburg with another town, the problem
The following probably well known minimal example
\starttext
\startregister[index][key1]{an entry}\input knuth\stopregister[index][key1]
\placeindex
\stoptext
produces the index entry "an entry 1--1", where the page range should be
just a single page.
A question (an
You forgot the second argument for \startregister and \stopregister.
\defineregister[TesT]
\starttext
\startregister[TesT][one]{samples}
\input knuth
\page
\startregister[TesT][two]{more}
\input ward
\stopregister[TesT][one]
\page zapf
\stopregister[TesT][two]
\blank[3*big
In the latest beta (2018.08.10),
\defineregister[TesT]
\starttext
\startregister[TesT]{samples}
\input knuth
\page
\input ward
\stopregister[TesT]
\blank[3*big]
\placeregister[TesT]
\stoptext
produces on page 2 the index entry
*samples 1*
when one expects
*samples 1–2*
Alan
expected behaviour?
>> And if so: is there another switch to get the ranges to be collapsed
>> completely?
>>
>> Also: There wouldn't be a shorthand to define explicit ranges? LaTeX has
>> \index{Demorange|(} to \index{Demorange|)} which is actually very convenient.
range|)} which is actually very convenient.
ConTeXt has \startregister, see
http://wiki.contextgarden.net/Registers#Collapse_Page_Numbers
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
_
\page[yes]
2
\demo{Demorange}
\page[yes]
3
\startregister[demo][demorange]{Demorange}
\page[yes]
4
\demo{Demorange}
\page[yes]
5
\page[yes]
6
\stopregister[demo][demorange]
\page[yes]
7
\demo{Demorange}
\page[yes]
\placeregister [demo] [comp
, hanging}]
\starttext
Hello One
\start
\setuptolerance[strict]
\startregister[index][two]{two}
Hello Two
This is \footnote{
\parfillskip 14pt plus 1 fill
Footnote \index{content}content.
}\par\stop % this brace is reported as unexpected character here
\stopregister[index][two]
\page
\placeindex
, yes]
\setupnotation[footnote][align={hz, hanging}]
\starttext
Hello One
\start
\setuptolerance[strict]
\startregister[index][two]{two}
Hello Two
This is \footnote{
\parfillskip 14pt plus 1 fill
Footnote \index{content}content.
}\par\stop % this brace is reported as unexpected character here
, yes]
\setupnotation[footnote][align={hz, hanging}]
\starttext
Hello One
\start
\setuptolerance[strict]
\startregister[index][two]{two}
Hello Two
This is \footnote{
\parfillskip 14pt plus 1 fill
Footnote \index{content}content.
}\par\stop % this brace is reported as unexpected
:
\setupalign[hz, hanging]
\setupindenting[medium, yes]
\setupnotation[footnote][align={hz, hanging}]
\starttext
Hello One
\start
\setuptolerance[strict]
\startregister[index][two]{two}
Hello Two
This is \footnote{
\parfillskip 14pt plus 1 fill
Footnote \index{content}content
% in older versions this value has to be set to 15.4cm
\input tufte
\parfillskip 30pt plus 1 fill
\input tufte
\startregister[index][test]{test}
\input{tufte}
\stopregister[index][test]
\stoptext
It can be fixed by a blank line inserted before \stopregister command, but
this is unacceptable
?
\startregister[index][range_01]{primary}
Dummy text.
\stopregister[index][range_01]
I've found a promising option compress=no|yes|all in an experimental
test case located in the strc-reg.mkiv file. The corresponding lua
code seems to be performing some cleanup of page ranges, but when
I
it to a single page number?
\startregister[index][range_01]{primary}
Dummy text.
\stopregister[index][range_01]
I've finally found it is caused by this logic:
if first == last then
if first.references.lastrealpage then
-- IMHO this could be optional
pagerange(first,first
On 2013-11-07 honyk wrote:
1) when a range for my subject index entry is specified and the text
between doesn't overflow to the next page, even in this case
the range of pages 1-1 is created. Is there any option to normalize
it to a single page number?
\startregister[index][range_01
On 2013-11-07 honyk wrote:
1) when a range for my subject index entry is specified and the text
between doesn't overflow to the next page, even in this case
the range of pages 1-1 is created. Is there any option to normalize
it to a single page number?
\startregister[index][range_01
Dear All,
1) when a range for my subject index entry is specified and the text between
doesn't overflow to the next page, even in this case the range of pages 1-1
is created. Is there any option to normalize it to a single page number?
\startregister[index][range_01]{primary}
Dummy text
Dear All,
what is the correct placing indext entries somewhere in the section title?
I use it for both ranges (when covering the whole section) and sometimes
also for individual entries:
(A) \section{\startregister[index][primary_range_01]{primary}Primary}
(B) \section{\index{primary}Primary
Am 07.11.2013 um 23:43 schrieb honyk j.tosov...@email.cz:
Dear All,
what is the correct placing indext entries somewhere in the section title?
I use it for both ranges (when covering the whole section) and sometimes
also for individual entries:
(A) \section{\startregister[index
:
(A) \section{\startregister[index][primary_range_01]{primary}Primary}
(B) \section{\index{primary}Primary}
(C) \section{Primary}\index{primary}
:-)
I usually place it at the beginning to ensure visibility of the title when
the page in the index is clicked in a large zoom (which should be preserved
\demo{Demoitem} foo
\page[yes]
\demo{Demoitem} foo
\page[yes]
%%% Here’s the range; should work without “compress”
\startregister[demo][demorange]{Demorange}
\demo{Demoitem} foo
\page[yes]
\demo{Otheritem} bar
\page[yes]
\demo{Otheritem} bar
\page[yes]
\stopregister[demo][demorange]%% = you’ll
]
\starttext
\demo{Demoitem} foo
\page[yes]
\demo{Demoitem} foo
\page[yes]
%%% Here?s the range; should work without ?compress?
\startregister[demo][demorange]{Demorange}
\demo{Demoitem} foo
\page[yes]
\demo{Otheritem} bar
\page[yes]
\demo{Otheritem} bar
\page[yes]
\stopregister[demo
when cite/index/startregister
and bookmarks are used in a project.
The first version that solved this bug was vers. 20120208 ... and this already
introduced the new footnotes.
The triangle can be switched of by
\setupnote[symbolcommand=\gobbleoneargument], as Wolfgang knew.
In general we'd need
be more concrete, it’s not clear what do you want.
When you need a index entry which spans multiple pages you can write it with
“\startregister[index][identifier]{entries} …
\stopregister[index][identifier]”.
Wolfgang
--
Bonnefoi Pierre-Francois|E-mail : bonne
entries
next slides : title
next index entries
I've not found the way to do this.
Can you be more concrete, it’s not clear what do you want.
When you need a index entry which spans multiple pages you can write it with
“\startregister[index][identifier]{entries
Hi,
todays beta gives an error with this test (taken from strc-reg.kmiv at line 35):
\starttext
\placeregister[index]
test \index{aa} test \startregister[index][x]{bb} test \page test \page test
\page test \stopregister[index][x]
\stoptext
! LuaTeX error ...text/tex/texmf-context/tex
\dorecurse{10}{test 1:!\startregister[index]{test} test
20 \stopregister{}
21 \page}
22 \dorecurse{5} {test 2:\recurselevel \page}
23 \dorecurse{10}{test 3:!\startregister[index]{test} test
24 \stopregister{}
25 \page}
26\dorecurse{5} {test 4:\recurselevel \page
assume \startregister[index]{keyword}...\stopregister is meant for something
different:
a MkII command for index ranges?)
those are ranges indeed
Hans
-
Hans Hagen | PRAGMA ADE
this ... no minimal example I
guess
btw:
does the MkIV-structure-idea also provide an xml-alike start/stop for index
marks?
index
termSchlüsselwort/term
/index
(I assume \startregister[index]{keyword}...\stopregister is meant for something
different:
a MkII command for index ranges
:
hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
\dorecurse{2}{hmmpf\page[yes]}
hmmpf\stopregister[index][identifier]\page[yes]
\placeregister[index][compress=no]
works ok in current version/beta
c) I'm not able to build caption numbers with the chapter number as
prefix: I want
in an error:
hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
\dorecurse{2}{hmmpf\page[yes]}
hmmpf\stopregister[index][identifier]\page[yes]
\placeregister[index][compress=no]
c) I'm not able to build caption numbers with the chapter number as prefix:
I want for example Fig. 2.6 where 2
Thomas Floeren wrote:
a) Floatcaptions are no longer placed:
\externalfigure[dummy]
\placefloatcaption[figure]{blabla}
i didn't yet rewrite that bit of code
b) \start...\stopregister results in an error:
hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
\dorecurse{2}{hmmpf\page[yes
:
\externalfigure[dummy]
\placefloatcaption[figure]{blabla}
b) \start...\stopregister results in an error:
hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
\dorecurse{2}{hmmpf\page[yes]}
hmmpf\stopregister[index][identifier]\page[yes]
\placeregister[index][compress=no]
c) I'm not able
Hi,
I'm using ConTeXt 2008.10.31 (Mk II) from the Debian unstable packages.
The live context (2009.03.06) produces a blank index with the pdftex
engine, so I'm CC'ing Patrick in case that problem is separate.
The context live is now 2009.04.28. I don't know if this helps, but at
least it is
Hi Sanjoy,
I'm using ConTeXt 2008.10.31 (Mk II) from the Debian unstable packages.
The live context (2009.03.06) produces a blank index with the pdftex
engine, so I'm CC'ing Patrick in case that problem is separate.
The context did not receive an update for quite some time. I will take a
look
II) from the Debian unstable packages.
The live context (2009.03.06) produces a blank index with the pdftex
engine, so I'm CC'ing Patrick in case that problem is separate.
\starttext
\startregister[index][Knuth]{Knuth}
\dorecurse{5}{\input knuth }
\stopregister[index][Knuth]
\startregister[index
Am 29.09.2008 um 00:16 schrieb Wolfgang Schuster:
Am 29.09.2008 um 00:00 schrieb Steffen Wolfrum:
Hi,
in my document I use utf-input.
So do the index-marks:
\enableregime[utf]
\starttext
START\startregister[index][umlautä]{Umlaute– ä}
\input knuth
END\stopregister[index
Hi,
in my document I use utf-input.
So do the index-marks:
\enableregime[utf]
\starttext
START\startregister[index][umlautä]{Umlaute– ä}
\input knuth
END\stopregister[index][umlautä]
\placeregister[index][compress=yes]
\stoptext
Just, this can't be typset:
! Missing \endcsname
Am 29.09.2008 um 00:00 schrieb Steffen Wolfrum:
Hi,
in my document I use utf-input.
So do the index-marks:
\enableregime[utf]
\starttext
START\startregister[index][umlautä]{Umlaute– ä}
\input knuth
END\stopregister[index][umlautä]
\placeregister[index][compress=yes]
\stoptext
more cryptic:
\index{foo|(}
...
\index{foo|)}
Either form includes all the pages between the two commands as entries
under foo, e.g.,
foo 24-68
\startregister[index][knuthrange]{knuth}
...
\stopregister[index][knuthrange]
Don't know why it is not possible to use \startindex ... \stopindex
Unfortunately in ConTeXt the register entry is required the other way
round:
\startregister[index][knuthrange1]{Knuth}
\stopregister[index][knuthrange1]
Could it be possible also to provide something like ...
\startregister[index][Index216]
\stopregister[index][Index216]{Verfassungsvertrag
:
\startregister[index][knuthrange1]{Knuth}
\stopregister[index][knuthrange1]
Could it be possible also to provide something like ...
\startregister[index][Index216]
\stopregister[index][Index216]{Verfassungsvertrag}
... in mkii, please?
Steffen
] \stopprofile
\startproject file \stopproject
\startquotation[left|middle|right] \stopquotation
\startregister[text]{text+text+text} \stopregister
# \startsetups \stopsetups
# \startstandardmakeup \stopstandardmakeup
\startsymbolset[name] \stopsymbolset
\startsynchronization \stopsynchronization
Thomas A. Schmitz wrote:
On Mar 13, 2007, at 6:41 PM, Hans Hagen wrote:
OK, I tried a hack, and I just wanted to ask if there's anything
wrong with it: as dirty workaround, I added a fourth key to
dostartregister:
\def\startregister
{\doquadrupleempty\dostartregister}
\def
for ranges?
OK, I tried a hack, and I just wanted to ask if there's anything
wrong with it: as dirty workaround, I added a fourth key to
dostartregister:
\def\startregister
{\doquadrupleempty\dostartregister}
\def\dostartregister[#1][#2][#3][#4]#5%
{\chardef
On Mar 13, 2007, at 6:41 PM, Hans Hagen wrote:
OK, I tried a hack, and I just wanted to ask if there's anything
wrong with it: as dirty workaround, I added a fourth key to
dostartregister:
\def\startregister
{\doquadrupleempty\dostartregister}
\def\dostartregister[#1][#2][#3][#4]#5
, and I just wanted to ask if there's anything
wrong with it: as dirty workaround, I added a fourth key to
dostartregister:
\def\startregister
{\doquadrupleempty\dostartregister}
\def\dostartregister[#1][#2][#3][#4]#5%
{\chardef\registerpagestatus\plustwo
\def\currentregister{#1
have defined a special index which will typeset numbers in bold:
\setupregister[index][imp][pagestyle=bold]
which I invoke like
\index[imp::]{modernity}
How can I get a register range to use this special style? I tried
something like
\startregister[imp][signi][signifie]{\em signifié}
but get
something like
\startregister[imp][signi][signifie]{\em signifié}
but get errors missing csname. What am i overlooking?
Thanks
Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
Jason wrote:
When using startregister/stopregister commands, if the range is only one
one page, then while both a [f] and a [t] are written to the tui file,
only one \registerfrom command is put in the tuo file. If there is only
one range, it seems like the software deals with it nicely
Hans (or whoever could change this),
When using startregister/stopregister commands, if the range is only one
one page, then while both a [f] and a [t] are written to the tui file,
only one \registerfrom command is put in the tuo file. If there is only
one range, it seems like the software
Hi all,
I must be obtuse, but I can't find the answer to this easy question:
to define a register range, I was using this:
\startregister[index]{Menippean}
\stopregister[index]
and it works. However, when I try to replace [index] with my own key
(because I have overlapping ranges
Thomas A. Schmitz wrote:
Hi all,
I must be obtuse, but I can't find the answer to this easy question:
to define a register range, I was using this:
\startregister[index]{Menippean}
\stopregister[index]
and it works. However, when I try to replace [index] with my own key
(because
On Feb 23, 2006, at 12:10 PM, Duncan Hothersall wrote:
Hi Thomas.
The first [...] in the \startregister command is the name of the
register itself, then there is a second one for the sort key/range
identifier. So you want:
\startregister[index][Menippean]{Menippean}
\stopregister[index
\startregister[index]{Menippean}
\stopregister[index]
and it works. However, when I try to replace [index] with my own key
(because I have overlapping ranges)
\startregister[satire]{Menippean}
\stopregister[satire]
I get errors: ...
Hi Thomas.
The first [...] in the \startregister
what the problems are, but basically
1. there are three separate spans (\startregister...\stopregister pairs)
with the same term content (these three separate spans coalesce) which
get coalesced into one strange a-b-c-d span, despite having been given
different sort keys (I added numbers to the end
[Name][Names]
\setupregister[Name][pagestyle=\it]
\setupregister[Name][bf][pagestyle=\bf]
\starttext
Names:
\Name[bf::]{Hans}
\Name{Taco}
\startregister[Name][bf::]{Patrick}
\page[yes]
\Name{Hans}
\stopregister[Name][bf::]{Patrick}
\page[yes]
\Name{Patrick}
\placeregister[Name
:0:0:0:0}{}
and have this in the index:
see This, :0]–
After that, the .tuo file will be messed up, you have to delete it to
make the document compile again.
For the bug with ranges:
\starttext
\index{This} This
\page
\startregister[index]{This}
and
\page
that
\page
again
they will really
mess up index generation:
1. index ranges inserted via \startregister[index] will gobble all
other entries for the term;
2. \seeindex gives an error and will foul up the .tui file when
processed with newtexexec;
3. again with newtexexec: capital letters at the beginning
they are fairly critical because they will really mess up
index generation:
1. index ranges inserted via \startregister[index] will gobble all
other entries for the term;
2. \seeindex gives an error and will foul up the .tui file when
processed with newtexexec;
3. again with newtexexec: capital
In theory, you can say
\startregister[index]{great+topic} and \stopregister[index]{great+topic}
and this will do what you want. However, this is one of several bugs
in the index module of ConTeXt: this will print just this range and
gobble all other entries in the index for great/topic. I
Quoting Thomas A. Schmitz :
-- was [EMAIL PROTECTED] on Oct 16, 2005 at 12:11:31 --
In theory, you can say
\startregister[index]{great+topic} and \stopregister[index]{great+topic}
Many thanks Thomas, that's what I was looking for :))
and this will do what you want. However, this is one
(generally noncontinuous) range.
The same sad result you obtain if you use startregister...stopregister pair.
If you know Perl it is not difficult to insert such stuff for one
application. It is very difficult to create a general solution.
I have no (positive and deep) experience with new ruby
Bug or feature?
In a register (such as the index), a command like
\index[key]{entry}
creates an index entry sorted as 'key', and there exists also
\startregister[key]{entry} ... \stopregister[key]
which creates a page range. As far as I can tell, the [key] here plays
two roles - the ID
:
--
\defineregister[Name][Names]
\setupregister[Name][pagestyle=\it]
\setupregister[Name][bf][pagestyle=\bf]
\starttext
Names:
\Name[bf::]{Hans}
\Name{Taco}
\startregister[Name][bf::]{Duncan}
\page[yes]
\Name{Hans}
\stopregister[Name][bf::]{Duncan}
\page[yes]
\Name{Duncan
I am one night from a deadline and I have just noticed that my index is
silently ignoring some entries... Help!!
The following demonstrates the problem (tested on live.contextgarden.net):
--
\starttext
\startregister[index]{this term+in+particular} This term is discussed
from the start
I wrote:
--
\starttext
\startregister[index]{this term+in+particular} This term is discussed
from the start of this page.\page[yes]
Some more text about the term, and another page.\page[yes]
And the end of the info about that term. \stopregister[index]{this
term+in+particular}\page[yes]
A page
84 matches
Mail list logo